package com.atguigu.multiReading;

import static java.lang.Thread.sleep;

public class Demo1 {
    public static void main(String[] args) throws InterruptedException {
        for(int i=0;i<20;i++){
            int j=i;
            Thread thread=new Thread(()->{
                System.out.println(j);
            });
            thread.start();
            sleep(1000);
        }
        System.out.println("ok");
    }
}
